<%@ page import="com.lsk.util.GlobalParameter" %>
<%@ page import="com.lsk.util.UuidUtil" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018-11-07
  Time: 下午 6:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>返利记录</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="my/css/mui.css?version=<%=UuidUtil.get32UUID()%>" rel="stylesheet" />
    <link href="my/css/tkrecord.css?version=<%=UuidUtil.get32UUID()%>" rel="stylesheet" />

    <link rel="stylesheet" type="text/css" href="/layui-v2.2.5/layui/css/layui.css" />
    <link href="my/css/iconfont.css" rel="stylesheet" />

    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js" type="text/javascript" charset="utf-8"></script>
    <script src="/layui-v2.2.5/layui/layui.js"></script>
    <script src="/js/jquery-3.3.1.min.js"></script>
    <script>
        var deviceWidth=$(window).outerWidth();
        if(deviceWidth>=640){
            $("html").css("font-size","100px");
        }else{
            $("html").css("font-size",deviceWidth/640*100+'px');
        }
    </script>
</head>
<body>

<script>
    wx.config({
        debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
        appId: '${wxAuthorization.appid}', // 必填，公众号的唯一标识
        timestamp:${wxAuthorization.timestamp}, // 必填，生成签名的时间戳
        nonceStr: '${wxAuthorization.nonceStr}', // 必填，生成签名的随机串
        signature: '${wxAuthorization.signature}',// 必填，签名
        jsApiList: ['updateAppMessageShareData','updateTimelineShareData','hideMenuItems','showMenuItems','onMenuShareAppMessage','onMenuShareTimeline'] // 必填，需要使用的JS接口列表
    });

    wx.ready(function(){
        wx.onMenuShareAppMessage({
            title: '${activityInfo.name}', // 分享标题
            desc: '${activityInfo.transmitTitle}', // 分享描述
            link: 'http://<%=GlobalParameter.domain%>/mobileGroup/groupIndex?orgId=${member.orgId}&activityId=${member.activityId}&parentId=${member.id}&groupId=${groupId}', // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
            imgUrl: '${logoPath}', // 分享图标
            success:function(res) {
                //这里是回调函数
                //transmitFriend();
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });

        //自定义“分享到朋友圈”及“分享到QQ空间”按钮的分享内容（1.4.0）
        wx.onMenuShareTimeline({
            title: '${activityInfo.transmitTitle}', // 分享标题
            link: 'http://<%=GlobalParameter.domain%>/mobileGroup/groupIndex?orgId=${member.orgId}&activityId=${member.activityId}&parentId=${member.id}&groupId=${groupId}', // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
            imgUrl: '${logoPath}', // 分享图标
            success: function(res) {
                //这里是回调函
                //transmitMoments();
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });

        wx.hideMenuItems({
            menuList: ['menuItem:share:qq','menuItem:share:weiboApp','menuItem:favorite','menuItem:share:facebook'
                ,'menuItem:share:QZone','menuItem:originPage','menuItem:readMode','menuItem:openWithQQBrowser'
                ,'menuItem:openWithSafari','menuItem:copyUrl'] // 要隐藏的菜单项，只能隐藏“传播类”和“保护类”按钮，所有menu项见附录3
        });
        wx.showMenuItems({
            menuList: ['menuItem:profile','menuItem:addContact'] // 要显示的菜单项，所有menu项见附录3
        });

    });
</script>


<c:choose>
    <c:when test="${returnData.code == '000000'}"> <%--有差额退款--%>
        <c:forEach items="${returnData.data}" var="rebateLogs">
            <div class="mui-content">
                <div class="titbox">
                    <div class="tit">${rebateLogs.memberName}:${rebateLogs.memberTel}</div>
                    <div class="time">${rebateLogs.createTime}</div>
                </div>
                <div class="price">+&nbsp;${rebateLogs.money/100}</div>
            </div>
        </c:forEach>
    </c:when>
    <c:otherwise>
        <div class="bg"><p>暂无相关记录</p></div>
    </c:otherwise>
</c:choose>


<!-- 底部导航 -->
<nav class="mui-bar mui-bar-tab">
    <a href="/mobileGroup/groupIndex?orgId=${orgInfo.id}&activityId=${activityInfo.id}&parentId=${member.id}&groupId=${groupId}" class="mui-tab-item ">
        <span class="mui-icon iconfont icon-youhuiquan-fill"></span>
        <span class="mui-tab-label">首页</span>
    </a>
    <a href="/mobileGroup/groupGoMyInfo?orgId=${orgInfo.id}&activityId=${activityInfo.id}&parentId=${member.id}&groupId=${groupId}" class="mui-tab-item ">
        <span class="mui-icon iconfont icon-youhuiquan-fill "></span>
        <span class="mui-tab-label">我的</span>
    </a>
</nav>



</body>

</html>

